<?php
$this->breadcrumbs=array(
	'Operatori'=>array('index'),
	'Lista',
);

Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$.fn.yiiGridView.update('operatore-grid', {
		data: $(this).serialize()
	});
	return false;
});
");
?>

<div id="header">
	<div class="headerImage"><img src="images/surgeon.png" />
	</div>
	<div class="options">
		<?php //echo CHtml::beginForm(CHtml::normalizeUrl(array('operatore/create'))); ?>

		<!--<button class="clean-gray"><img src="images/add.png" /> Aggiungi operatore</button>-->
		
		<?php //echo CHtml::endForm(); ?>
		</div>
	<div class="titolo">
		Operatori
	</div>
	<div class="sottotitolo">
		<?php echo $numeroOperatori; ?> operatori
	</div>
	<div class="clear"></div>
	<div id="breadcrumbs-one">
		<?php $this->widget('zii.widgets.CBreadcrumbs', array(
    'links'=>$this->breadcrumbs,
)); ?></div>
</div>



<?php echo CHtml::link('Advanced Search','#',array('class'=>'search-button')); ?>
<div class="search-form" style="display:none">
<?php $this->renderPartial('_search',array(
	'model'=>$model,
)); ?>
</div><!-- search-form -->

<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'operatore-grid',
	'dataProvider'=>$model->search(),
	'filter'=>$model,
	'columns'=>array(
		'nomeOperatore',
		array(
			'class'=>'CButtonColumn',
		),
	),
)); ?>
